{% extends '::backend.html.twig' %}
{% block contenido %}
<legend>Editar Rol: "{{ entity.name }}"</legend>
<form class="form-horizontal" action="{{ path('role_update', { 'id': entity.id }) }}" method="post" {{ form_enctype(form) }}>
   {{ form_widget(form._token) }} 
    {% include 'BackendBundle:Default:flashAlerts.html.twig'%}
    <fieldset> 
        <div class="control-group">
            <label class="control-label required" >Nombre</label>
            <div class="controls">
                {{ form_errors(form.name) }}
                {{ form_widget(form.name) }}
            </div>
        </div>    
        <div class="form-actions">
            <button type="submit" class="btn btn-success save">
                <i class="icon-ok icon-black"></i> Guardar
            </button>
             <a class="btn btn-danger" href="{{ path('role') }}">
                    <i class="icon-remove icon-black"></i> Cancelar
            </a>
        </div>
    </fieldset>
</form> 
{% endblock %}
